import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import clickoutside from './directives/clickoutside'
import debounce from './directives/debounce'
import 'element-ui/lib/theme-chalk/index.css'
import 'swiper/swiper-bundle.css'

require('./styles/mixin.less')

import './permission'
import Install from '@/plugins/install'

Vue.config.productionTip = false
Vue.config.errorHandler = function (err, vm, info) {
  console.error('错误信息：', err)
  console.error('发生节点：', vm)
  console.error('其它信息：', info)
}
Vue.directive('clickoutside', clickoutside)
Vue.directive('debounce', debounce)
Vue.use(ElementUI)
Vue.use(Install)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
